import base from './base.js';

export default class Game extends base 
{
	constructor(e) 
	{
		super(e);
    		this.model = 'show';
  	}

  	async get_playerData(myData) 
	{
    		this.model = 'player';
    		return {
      			...this.screenData,
      			saveId: 'player',
      			...myData,
    		};
  	}
  	async get_player_pindao_Data(myData) 
	{
   		this.model = 'player_pindao';
   		return {
      			...this.screenData,
      			saveId: 'player_pindao',
      			...myData,
    		};
  	}
  	//我的任务
  	async get_renwuData(myData) 
	{
    		this.model = 'renwu';
    		return {
      		...this.screenData,
      		saveId: 'renwu',
      		...myData,
    		};
  	}

  	async get_wuqiData(myData) 
	{
    		this.model = 'wuqi';
    		return {
      		...this.screenData,
      		saveId: 'wuqi',
      		...myData,
    		};
  	}

  	async get_playercopyData(myData) 
	{
    		this.model = 'playercopy';
    		return {
      			...this.screenData,
      			saveId: 'playercopy',
      			...myData,
    		};
  	}

  	async get_equipmnetData(myData) 
	{
    		this.model = 'equipment';
    		return {
      			...this.screenData,
      			saveId: 'equipment',
      			...myData,
    		};
  	}
  	async get_stateData(myData) 
	{
    		this.model = 'state';
    		return {
      			...this.screenData,
      			saveId: 'state',
      			...myData,
    		};
  	}

	//修为榜
  	async get_ranking_powerData(myData) 
	{
    		this.model = 'ranking_power';
    		return {
      			...this.screenData,
      			saveId: 'ranking_power',
      			...myData,
    		};
  	}
	
  	async get_updataData(myData) 
	{
    		this.model = 'updata';
    		return {
      			...this.screenData,
      			saveId: 'updata',
      			...myData,
    		};
  	}
}
